<?php
namespace Common\Model;


class ConfigModel extends BaseModel {
    protected $pk = 'id';
    protected $tableName = 'config';

    protected $_validate = [
        ['system', 'require', '系统配置信息不能为空']
    ];

    // 保存数据
    public function store($data) {
        $data[$this->pk] = 1;
        parent::store($data);
    }


}